package win.larryzeal.jmx.mbean.model;

/**
 * 演示Model MBean：相对于Standard MBean，Model MBean更加灵活。如果我们不能修改已有的Java类，那么使用Model MBean是不错的选择。
 * Created by 张少昆 on 2017/8/18 0018.
 */
public class Eat {
	private String food;

	public String getFood(){
		return food;
	}

	public void setFood(String food){
		this.food = food;
	}

	public void comment(){
		System.out.println("I think it is delicious, " + food);
	}

	public void comment(String whoName){
		System.out.println("I think it is delicious, " + whoName);
	}
}
